<html>
<head>
	<title>Test</title>
	<script type="text/javascript" src="./jsswx.js"></script>
</head>
<body>
<p>test</p>
<script type="text/javascript">
	function $(id) {
		return document.getElementById(id);
	};
	var obj = {
		onResult : function(result) {
			$("log").innerHTML += "Call result : " + result + "<br/>";
		}
	};
	var jsswx = new JsSWX();
	jsswx.gateway = "http://localhost:8080/swx/swx/gateway";

	function callSwx() {
		$("log").innerHTML += "Starting JsSWX call ...<br/>";
		var data = [
			{id:1, name:"test1", imageUrl:"testtest"},
			{id:2, name:"test2", imageUrl:"testtest"},
			{id:3, name:"test3", imageUrl:"testtest"}
		];
		jsswx.call({serviceClass:"Simple", method:"echoData", args:[data], result:[obj, obj.onResult], debug:true});
	}
</script>
<input type="button" value="Call" onclick="callSwx();" />
<div id="log">
</div>
</body>
</html>
